﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace AMRService.Models.ResponseModels.ModelHelper.Common
{
    public class AmrException
    {
        /// <summary>
        /// 
        /// </summary>
        public RobotAmrException robotAmrException { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string amrHeartBeatTimeOutException { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public List<string> exception { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public int level { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public int reportLevel { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public bool rcsException { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public List<string> exceptionCodes { get; set; }
        public override string ToString()
        {
            StringBuilder sb = new StringBuilder();
            for (int i = 0; i < robotAmrException.exception.Count; i++)
            {
                sb.Append(robotAmrException.exception[i] + ";");
            }
            return sb.ToString();
        }
    }
}
